<template>
  <div class="invoice">
    <navBar :title="headerTitle"></navBar>
    <div class="main">
      <van-cell-group>
        <van-field v-model="company" clearable label="发票抬头" placeholder="请输入公司名称" />
        <van-field v-model="identifyNumber" label="纳税人识别号" placeholder="请输入纳税人识别号" />
      </van-cell-group>
      <van-button type="default" class="exchange" @click="handleSubmit">{{headerTitle}}</van-button>
    </div>
  </div>
</template>

<script>
import navBar from "@/components/nav-bar";
import { Field, Cell, CellGroup, Button } from "vant";
Vue.use(Field)
  .use(Cell)
  .use(CellGroup)
  .use(Button);
export default {
  data() {
    return {
      headerTitle: "添加发票抬头",
      company: "",
      identifyNumber: ""
    };
  },
  components: { navBar },
  methods: {
    handleSubmit() {}
  }
};
</script>

<style lang="less">
* {
  padding: 0;
  margin: 0;
}
.van-cell__title {
  font-size: 13px;
  font-family: PingFangSC-Regular;
  font-weight: 400;
  color: rgba(153, 153, 153, 1);
}
.invoice {
  position: relative;
  height: 100vh;
  padding-top: 50px;
  background-color: rgba(247, 247, 247, 1);
  .exchange {
    position: absolute;
    top: 330px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.van-button--default {
  width: 333px;
  height: 41px;
  background: linear-gradient(
    90deg,
    rgba(1, 47, 64, 1) 0%,
    rgba(1, 47, 64, 1) 100%
  );
}
.van-button__text {
  width: 115px;
  height: 22px;
  font-size: 15px;
  font-family: PingFangSC-Regular;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  line-height: 22px;
}
</style>
